<!doctype html>
<html>
<head>
  <meta charset='utf-8' />
  <title>mock-service 1.0.0 | Documentation</title>
  <meta name='viewport' content='width=device-width,initial-scale=1'>
  <link href='assets/bass.css' type='text/css' rel='stylesheet' />
  <link href='assets/style.css' type='text/css' rel='stylesheet' />
  <link href='assets/github.css' type='text/css' rel='stylesheet' />
  <link href='assets/split.css' type='text/css' rel='stylesheet' />
</head>
<body class='documentation m0'>
    <div class='flex'>
      <div id='split-left' class='overflow-auto fs0 height-viewport-100'>
        <div class='py1 px2'>
          <h3 class='mb0 no-anchor'>mock-service</h3>
          <div class='mb1'><code>1.0.0</code></div>
          <input
            placeholder='Filter'
            id='filter-input'
            class='col12 block input'
            type='text' />
          <div id='toc'>
            <ul class='list-reset h5 py1-ul'>
              
                
                <li><a
                  href='#mock'
                  class="">
                  Mock
                  
                </a>
                
                </li>
              
                
                <li><a
                  href='#node'
                  class="">
                  node
                  
                </a>
                
                </li>
              
                
                <li><a
                  href='#dataruleconfig'
                  class="">
                  data.rule.config
                  
                </a>
                
                </li>
              
            </ul>
          </div>
          <div class='mt1 h6 quiet'>
            <a href='http://documentation.js.org/reading-documentation.html'>Need help reading this?</a>
          </div>
        </div>
      </div>
      <div id='split-right' class='relative overflow-auto height-viewport-100'>
        
          
            <section class='p2 mb2 clearfix bg-white minishadow'>

  
  <div class='clearfix'>
    
    <h3 class='fl m0' id='mock'>
      Mock
    </h3>
    
    
  </div>
  

  <p>基于Mock.js搭建的自定义mock数据生成服务</p>


  <div class='pre p1 fill-light mt0'>Mock</div>
  
  

  
  
  
  
  
  

  

  

  

  

  

  

  

  
</section>

          
        
          
            <section class='p2 mb2 clearfix bg-white minishadow'>

  
  <div class='clearfix'>
    
    <h3 class='fl m0' id='node'>
      node
    </h3>
    
    
  </div>
  

  <p>根据模板生成数据对象
demo:表示一个有三个孩子的人
{
name:{
type:"nameCN"
},
children#list-3#child:[{
name:{
type:"nameCN"
}
}]
}</p>


  <div class='pre p1 fill-light mt0'>node(node: any): {}</div>
  
  

  
  
  
  
  
  

  
    <div class='py1 quiet mt1 prose-big'>Parameters</div>
    <div class='prose'>
      
        <div class='space-bottom0'>
          <div>
            <span class='code bold'>node</span> <code class='quiet'>(any)</code>
	    
          </div>
          
        </div>
      
    </div>
  

  

  
    
      <div class='py1 quiet mt1 prose-big'>Returns</div>
      <code>{}</code>:
        

      
    
  

  

  

  

  

  
</section>

          
        
          
            <section class='p2 mb2 clearfix bg-white minishadow'>

  
  <div class='clearfix'>
    
    <h3 class='fl m0' id='dataruleconfig'>
      data.rule.config
    </h3>
    
    
  </div>
  

  <p>默认数据类型</p>


  <div class='pre p1 fill-light mt0'>data.rule.config</div>
  
  

  
  
  
  
  
  

  

  

  

  

  

  

  

  
</section>

          
        
      </div>
    </div>
  <script src='assets/anchor.js'></script>
  <script src='assets/split.js'></script>
  <script src='assets/site.js'></script>
</body>
</html>
